package ar.edu.itba.ontologias.TPONTO;

import java.util.List;
import java.util.Map;

public class Person {

	private String path;
	private String name;
	private String birthDate;
	private String deathDate;
	private String country;
	private String imageUrl;
	private Map<String, List<String>> past;

	public Person(String path, String name, String birthDate, String deathDate,
			String country, String imageUrl, Map<String, List<String>> past) {
		this.path = path;
		this.name = name;
		this.birthDate = birthDate;
		this.deathDate = deathDate;
		this.country = country;
		this.imageUrl = imageUrl;
		this.past = past;
	}

	public String getPath() {
		return path;
	}

	public String getName() {
		return name;
	}

	public String getBirthDate() {
		return birthDate;
	}

	public String getDeathDate() {
		return deathDate;
	}

	public String getCountry() {
		return country;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public Map<String, List<String>> getPast() {
		return past;
	}

	@Override
	public String toString() {
		return " path " + path + " name " + name + " birthDate " + birthDate
				+ " deathDate " + deathDate + " country " + country
				+ " imageUrl " + imageUrl + " past " + past;
	}

	@Override
	public boolean equals(Object alt) {
		if (this == alt)
			return true;
		if (!(alt instanceof Person))
			return false;
		Person altPerson = (Person) alt;
		return this.path == altPerson.path;
	}
}
